<template>
  <view>
    <my-login  v-if="!getToken"/>
    <my-userinfo v-else />
  </view>
</template>

<script>
import tabBarBadge from "@/mixins/tabBar-badge";
import { mapGetters } from 'vuex'
export default {
  mixins: [tabBarBadge],
  computed: {
    ...mapGetters('user', ['getToken'])
  }
}
</script>

<style>
</style>